﻿namespace XLua.LuaDLL
{
    using System.Runtime.InteropServices;
    using XLua;

    /// <summary>
    /// 为lua提供预编译的本机代码调用接口。
    /// </summary>
    public partial class Lua
    {
        #region rapid-json

        [MonoPInvokeCallback(typeof (lua_CSFunction))]
        public static int LoadRapidJson(System.IntPtr L)
        {
            return luaopen_rapidjson(L);
        }

        [DllImport(LUADLL, CallingConvention = CallingConvention.Cdecl)]
        public static extern int luaopen_rapidjson(System.IntPtr L);

        #endregion
    }
}